package com.xrtn.service.impl;

import com.xrtn.bean.InitLabelInfo;
import com.xrtn.bean.InitLabelTypeInfo;
import com.xrtn.mapper.InitLabelInfoMapper;
import com.xrtn.mapper.InitLabelTypeInfoMapper;
import com.xrtn.service.ILabelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by tu_pei on 2018/5/22.
 */
@Service
public class LabelServiceImpl implements ILabelService{
    @Autowired
    private InitLabelTypeInfoMapper labelTypeInfoMapper;
    @Autowired
    private InitLabelInfoMapper labelInfoMapper;

    @Override
    public int deleteTypeByPrimaryKey(Integer typeId) {
        return labelTypeInfoMapper.deleteByPrimaryKey(typeId);
    }

    @Override
    public int insertTypeSelective(InitLabelTypeInfo record) {
        return labelTypeInfoMapper.insertSelective(record);
    }

    @Override
    public InitLabelTypeInfo selectTypeByPrimaryKey(Integer typeId) {
        return labelTypeInfoMapper.selectByPrimaryKey(typeId);
    }

    @Override
    public int updateTypeByPrimaryKeySelective(InitLabelTypeInfo record) {
        return labelTypeInfoMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int deleteInfoByPrimaryKey(Integer labelId) {
        return labelInfoMapper.deleteByPrimaryKey(labelId);
    }

    @Override
    public int insertInfoSelective(InitLabelInfo record) {
        return labelInfoMapper.insertSelective(record);
    }

    @Override
    public InitLabelInfo selectInfoByPrimaryKey(Integer labelId) {
        return labelInfoMapper.selectByPrimaryKey(labelId);
    }

    @Override
    public int updateInfoByPrimaryKeySelective(InitLabelInfo record) {
        return labelInfoMapper.updateByPrimaryKeySelective(record);
    }

}
